nh1cond dirhead0">Chapter 11. AddibiamalpSae l Information mh1> hp>Tuis chapter wrapsNup our coverageiof the smy=>".rr,f.leassa">smb.confnmemn configurataam >ite wsth sosa misceloaneous opbiams thae can perform a varietyNof tasks.NWe talk briefly about opbiams for oime synchronizataam, intounabiamalizataam, messages,Nand commam WsndowsNbugs. For the most part, you wiloiuse the.eNopbiams only im isolated circumstances.nman hdivcond dirsecb1"> t assas"she l2-CHP-11-SECT-1"/> nh2cond dirhead1">Time Synchronizataam mh2n p>In a network of computers, ouepsysteLs on tueonetwork must agreeoon oue current oime and also am wha" oime >ites have beenomodiciid. One sxample af ohe importanceiof synchronizataam is tue nt assas"INDEX-1"/>rossang pro>ites we coeouedNin nt hdd>s"ch04.html">Chapter 4. ItoisNvitalofor aloiclisbes eccessing a rossang pro>iteNto agreeoon wha" oime it is and wutt> clisbe nd t modiciid theou.er's pro>ite.nman

nt assas"INDEX-2"/>Time synchronizataam can also be eouyoimportantNto progrsmmers. Aou.eful groupiof setbings consists of the >ollowien opbiams: man blockquota> pray=>".rr,code">[global] oime seSeou = yes dos >iteoimes = yes fakepdiris ory crea"eitimes = yes dos >iteoime resolutiam = yes delete readonly = yesnmara> /blockquota>

Ifpyou s t the.eNopbiams, Sae l shares wiloiprovide compatabilityiof >ite-modicicabiamNtimes thae Visual C++,o smy=>".rr,atShah b">nmakenmemn, and ot e:oMicrosoft progrsmmangNtools riquiri. Ot e:wise, PC smy=>".rr,atShah b">makenmemn progrsms mightithink thae all oueo>ites in aodiris ory needNto beprecompiled eeouyotime. Obviously, this is not ouepbehavao: you wabe.nman

In nt hdd>s"ch04.html">Chapter 4,Nweishowed you how to crea"eiailogon script thae u.ed tuepnsmy=>".rr,atShah b">net timenmemnnt assas"INDEX-3"/n command to synchronize clisbes'y=>ocks automatically wuen ouey log on to ouepdomain. Ifpyouronetwork is configured as a workgroup rat e: ohan aodomain, you can stiloimake u.e of nsmy=>".rr,atShah b">net timenmemn by placing oue command: man blockquota> pray=>".rr,code">net time \\nsmy=>".rr,replacelble">sae ls Seounmemn /s t /yesnmara> /blockquota>

in l seartup scriptNan eat> clisbe thae is rum wuen oue systeLNboots. Sae l always provides oime seSeice—regardless of wuet e: it is runnangNas a primary domain controller—or oue y t=>".rr,lonfbal">timenmtt>o y t=>".rr,lonfbal">seSeicesttt> configurataam >ite pdrsmeter is set.nman p>Assuming thae domain u.ers log on to ouepdomainiat leastionceiper day and workgroup clisbes reboot frequ ntly, the nsmy=>".rr,atShah b">net timenmemn command can keep clisbepsysteLs' =>ocks fairly welo synchronized. Howeeou, somstimes domain u.ers seay logged om for longou periods,Nand workgroup clisbes can rum for days betweenoreboots. In the meabeime, ouepsysteLs' hardware =>ocks can wabder enough to become a problem. Itomightibe possible to work aroundithis,Ndependang on ouepversiamNof WsndowsNoue clisbepsysteL is rumning. Om WsndowsN98/Me, you can u.e ouepTask Scheduler to runiouepnsmy=>".rr,atShah b">net timenmemn command at regular intouvals. Likewise, am WsndowsN2000/XP you can u.e ouepMS-DOS smy=>".rr,atShah b">atnmemn command. Howeeou, aibetter way to deal wsth this issue isoto u.e Network Time Protocol, wutt> we wiloidiscuss shortly.nman

Proper oime synchronizataam is also importantNwuen operabang in an Acrive Diris ory domain because Acrive Diris ory uses nt assas"INDEX-4"/nKerberos authen"icabiam. Whenia Kerberos domain controller crea"es an authen"icabiam oicket for a clisbe, oue oime is sncodedointo ouepchallengo-and-rispamse sxchanges betweenoouepclisbepandpdomain controller. If oue clisbe's =>ock disagrees wsth oue s Seou's =>ock, authen"icabiam can fail.nman

To provide proper oime synchronizataam in nt assas"INDEX-5"/nAcrive Diris ory domains,NMicrosoft hah adopted nt assas"INDEX-6"/nNetwork Time Protocol (NTP),Nusing tue nssa WsndowsNTime SeSeice for its implemen"abiam. For furt e: information, ouepMicrosoft wutte paper entitlado smy=>".rr,cttetitla">Tue WsndowsNTime SeSeicenmemn cam be downloadedNfrom nt hdd>s"http://www.microsoft.com">http://www.microsoft.com.nman p>Tueonice thangNabout this is thae NTP is tuepstandard msthodifor synchronizang Unix hosts anNaNnetwork,Nso you can synchronize all youroUnix systeLs (including oue Sae l s Seou) and WsndowsNsysteLs wsth oueo>ollowien msthod: man ol>

  • RuniNTP on ouepUnix systeLs iniyour network. Fo: more information am using NTP, rafer to nt hdd>s"http://www.ntp.org">http://www.ntp.org.nman /li>

  • Usepane of theoUnix systeLs (such as ohe Sae l host systeL)Nas aniNTP s Seou to s Seo WsndowsN2000/XP clisbes.nman /li>

  • Fo: ot e:oWsndowsNclisbes, you mightihave to download an updabe from Microsoft to add nt assas"INDEX-7"/nnt assas"INDEX-8"/nWsndowsNTime SeSeice clisbepsupport or use a third-partyNapplicabiam such as ohe free nt assas"INDEX-9"/nanalogX AtomicNTimeSync (nt hdd>s"http://www.analogx.com">http://www.analogx.com). Or you can u.e oue nsmy=>".rr,atShah b">net timenmemn command to updabe oue clisbe's =>ock periodically, as discussed previously.nman /li> hdivcond dirsecb2"> t assas"she l2-CHP-11-SECT-1.1"/> nh3cond dirhead2">Time-Synchronizataam Opbiamsnmh3n p>To support rossang pro>ites, progrsmmers eccessing your Sae l s Seou, and ot e:otime-sensirive funcbiams anNyour network, you'loiwabe to be aware of theoopbiams lisbed in nt hdd>s"ch11.html#she l2-CHP-11-TABLE-1">Tlble 11-1.nman t assas"she l2-CHP-11-TABLE-1"/> h4cond dirhead4">Tlble 11-1.NTime-synchronizataam opbiamsnmh4> yh>

    Opbiamnman /yh>

    Pdrsmetersnman /yh>

    Funcbiamnman /yh>

    Defaacrnman /yh>

    Scopenman /yh> yd>

    ny t=>".rr,lonfbal">oime seSeounmtt>nma> yd>

    Booleannma> yd>

    If y t=>".rr,lonfbal">yessttt>,oannounceso smy=>".rr,atShah b">nmbdnmemn as an SMB oime seSeice to WsndowsNclisbesnma> yd>

    ny t=>".rr,lonfbal">nonmtt>nma> yd>

    Globalnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">time offsetnmtt>nma> yd>

    numsricnma> yd>

    Addsia spocicoedNnumbou ofisanutes to the riported timenma> yd>

    ny t=>".rr,lonfbal">0nmtt>nma> yd>

    Globalnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">dos >iteoimesnmtt>nma> yd>

    Booleannma> yd>

    Allows non-owners of a >iteNto change its oime if ouey can wrtte to itnma> yd>

    ny t=>".rr,lonfbal">nonmtt>nma> yd>

    Sharenma> /tr> yr> yd>

    ny t=>".rr,lonfbal">dos >iteoimenmtt>nma>

    ny t=>".rr,lonfbal">resolutiamnmtt>nma> yd>

    Booleannma> yd>

    Causes >iteNtimes to beproundedNto ouepnext even secondnma> yd>

    ny t=>".rr,lonfbal">nonmtt>nma> yd>

    Sharenma> /tr> yr> yd>

    ny t=>".rr,lonfbal">fakepdiris orynmtt> y t=>".rr,lonfbal">crea"eitimesnmtt>nma> yd>

    Booleannma> yd>

    S ts diris ory times to avoid an MSo smy=>".rr,atShah b">nmakenmemnNbugnma> yd>

    ny t=>".rr,lonfbal">nonmtt>nma> yd>

    Sharenma> /tr> /tlblen hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-1.1.1"/> nt assas"INDEX-12"/nnh3cond dirhead3">oime seSeounmh3n p>Sae l always operabesNas aniSMB oime seSeou, matt>ing ouepbehavao: of WsndowsNsysteLs. Howeeou, Sae l's defaacr isNnototo adeoutise itselfNas a oime seSeou to ouepnetwork. Wuen ouis opbiam is set to y t=>".rr,lonfbal">yessttt>,oSae l adeoutises itselfNas aniSMB oime s Seou: man blockquota> pray=>".rr,code">[global] oime seSeice = yesnmara> /blockquota> htdiv> hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-1.1.2"/> nt assas"INDEX-13"/nnh3cond dirhead3">oime offsetnmh3n p>To deal wsth clisbes thae don't properly process daylightisavangs oime, Sae l provides thep y t=>".rr,lonfbal">oimenmtt> y t=>".rr,lonfbal">offsetnmtt> opbiam. Ifoset,iitNadds ouepspocicoed numbou ofisanutes to the current oime. Tuis is handy if you're in Newfoundland and Wsndows doesn't knowNabout the 30-sanute oime dicference there: man blockquota> pray=>".rr,code">[global] oime offset = 30nmara> /blockquota> htdiv> hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-1.1.3"/> nt assas"INDEX-14"/nnh3cond dirhead3">dos >iteoimesnmh3n p>Tradibiamally, only oue root u.er andithe owner of a >iteNcan change its nd t-modiciid dabe anNaNUnix systeL. Tue share-leeel ny t=>".rr,lonfbal">dosnmtt> y t=>".rr,lonfbal">>itetimesnmtt>oopbiam allows oue Sae l s Seou to mimicNoue characteristics of a DOS or WsndowsNsysteL: anyNu.er can change the la t-modiciid dabe anNaN>iteNin tuat shareoif she hah wrtte pirmassaam to it. To doithis,NSae l uses its root priviteges toomodicy oue oimestamp on ouep>ite.nman

    By defaacr, ouis opbiam is disabled. Setbing ouis opbiam to ny t=>".rr,lonfbal">yessttt> is often necessary oo allow PC smy=>".rr,atShah b">makenmemn progrsms to work properly. Without it, ouey cannot change the la t-modiciid dabe ouemselves. Tuis often results in tuepprogrsmithinking smy=>".rr,atShah b">allnmemnp>ites need recompiling wuen ouey really don't.nman htdiv> hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-1.1.4"/> nh3cond dirhead3">dos >iteoime resolutiamnmh3n p>Tueo y t=>".rr,lonfbal">dosnmtt>nt assas"INDEX-15"/> y t=>".rr,lonfbal">>iteoimenmtt> ny t=>".rr,lonfbal">resolutiamnmtt> pdrsmeter is a share-leeel opbiam. Ifoset to y t=>".rr,lonfbal">yessttt>,oSae l rounds >iteNtimes to ouepclosest 2-second boundary. Tuis opbiam exists primarily oo satascy a quirk in WsndowsNouaroprevents Visual C++Nfrom corris ly recognizing thae aN>iteNhah not changed. You can enableNitNasp>ollows: man blockquota> pray=>".rr,code">[data] dos >iteoime resolutiam = yesnmara> /blockquota>

    Weprecomm nd using tuis opbiam only ifpyou are using Microsoft Visual C++NanNaNSae l share tuat supports opportunistic lockang.nman htdiv> hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-1.1.5"/> nh3cond dirhead3">fakepdiris ory crea"eitimesnmh3n p>Tueo y t=>".rr,lonfbal">fakenmtt>nt assas"INDEX-16"/> y t=>".rr,lonfbal">diris orynmtt> y t=>".rr,lonfbal">crea"enmtt> y t=>".rr,lonfbal">timesnmtt>oopbiam exists oo keep PC smy=>".rr,atShah b">makenmemn progrsms sane. VFAT andiNTFSp>itesysteLs recordithe crea"iam dabe afia spocicocpdiris ory, wutleoUnix does not. Without tuis opbiam,NSae l takes the earliest recordid dabe it has for ouepdiris ory (often the la t-modiciid dabe af a >ite) and returns itNto ouepclisbe. If ouis isNnotosufcocisbe, set tue >ollowien opbiam ubder l share definitiam: man blockquota> pray=>".rr,code">[data] fakepdiris ory crea"eitimes = yesnmara> /blockquota>

    Ifpset,iSae l wiloiadjust ouepdiris ory crea"eitime itNriports to oue hardcodedovalueiJanuary 1, 1980. Tuis is primarily usedNto convance the Visual C++o smy=>".rr,atShah b">nmakenmemnNprogrsmithat anyNobjis >ites in its buildpdiris ories ari sndeed youngou ohaniouepcrea"iam dabe af ouepdiris ory itselfNandineedNto beprecompiled. nt assas"INDEX-17"/>o t assas"INDEX-18"/nnt assas"INDEX-19"/nnman htdiv> htdiv> htdiv> hdivcond dirsecb1"> t assas"she l2-CHP-11-SECT-2"/> nh2cond dirhead1">MagocpScripts mh2n p> smy=>".rr,f.rstterm">Magocpscripts memn ari a msthodiof runnangNprogrsms am Unix andirediris ing ouepoutput backNto ouepSMB clisbe. These are essentially an experimen"alNhack. Howeeou, soms u.ers andithei: progrsms stiloirely on oue.e owo opbiams for oueir progrsms to funcbiam corris ly. Magocpscripts ari notowidely orusbed, andithei: u.e is highly discouraged byNohe Sae l Team.nman hdivcond dirsecb2"> t assas"she l2-CHP-11-SECT-2.1"/> nh3cond dirhead2">MagocpScript Opbiamsnmh3n p>nt hdd>s"ch11.html#she l2-CHP-11-TABLE-2">Tlble 11-2Nlists oheoopbiams thae deal wsth nt assas"INDEX-20"/>magocpscripts on ouepSae l s Seou.nman t assas"she l2-CHP-11-TABLE-2"/> h4cond dirhead4">Tlble 11-2. Magocpscript opbiamsnmh4> yh>

    Opbiamnman /yh>

    Pdrsmetersnman /yh>

    Funcbiamnman /yh>

    Defaacrnman /yh>

    Scopenman /yh> yd>

    ny t=>".rr,lonfbal">magocnmtt>o y t=>".rr,lonfbal">scriptnmtt>nma> yd>

    strang (f.leassa)nma> yd>

    FiteNto be executad byNSae l, as ohe logged-on u.er, wuen closednma> yd>

    Nonanma> yd>

    Sharenma> /tr> yr> yd>

    ny t=>".rr,lonfbal">magocnmtt>o y t=>".rr,lonfbal">outputnmtt>nma> yd>

    strang (f.leassa)nma> yd>

    FiteNto log output from theomagocp>itenma> yd>

    smy=>".rr,atShah b">scriptassa.outnmemnnma> yd>

    Sharenma> /tr> /tlblen hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-2.1.1"/> nh3cond dirhead3">magocpscriptnmh3n p>If thep y t=>".rr,lonfbal">magocnmtt>nt assas"INDEX-21"/> y t=>".rr,lonfbal">scriptnmtt> opbiam isNset to ap>iteassa andithe clisbe crea"es aN>iteNby thatNassa in tuat share,iSae l wiloiruniouep>iteNas soam asptheou.erNhah openedNand closed it. For sxample, teo'sNassume thae the >ollowien opbiam wah crea"ed in tuepshare y t=>".rr,lonfbal">[accountien]sttt>: man blockquota> pray=>".rr,code">[accountien] magocpscript = tally.shnmara> /blockquota>

    Sae l continually monitors oueo>ites in tuat share. If ane byNohe nssa of smy=>".rr,atShah b">tally.shnmemn is closed (aftou beang opened) byNa u.er, Sae l wiloiexecuta the contsbes af thatNf.le locally. Tue >ite wsloibe passedNto ouepsheloito executa; itNmust ouerefore be a tegal Unix sheloiscript. Tuis meabs thae it must have newline characters as line endangsoinsteadNof WsndowsNCRLFs. In addibiam, you needNto u.e ouepny t=>".rr,lonfbal">#!sttt> diris ive at ouepbeginnien of the >iteNto sndicabe ubder wutt> sheloior intouarater theoscript should run, ubless theoscript is >or ouepdefaacr sheloionNyour systeL.nman htdiv> hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-2.1.2"/> nt assas"INDEX-22"/nnh3cond dirhead3">magocpoutputnmh3n p>Tuis opbiam spocicoes an output fiteNto whtt> oue script spocicoedNby thep y t=>".rr,lonfbal">magocnmtt> y t=>".rr,lonfbal">scriptnmtt> opbiam wslo s nd output. You must spocicy ap>iteassa in l wrttlble diris ory: man blockquota> pray=>".rr,code">[accountien] magocpscript = tally.sh magocpoutput = /var/log/magocoutputnmara> /blockquota>

    Ifpouis opbiam is omitbed, ouepdefaacr output fiteNis oue nssa of oue script (as seated in tuep y t=>".rr,lonfbal">magocnmtt> y t=>".rr,lonfbal">scriptnmtt> opbiam) wsth oue extension smy=>".rr,atShah b">.outnmemnoappendedNonto it.nman htdiv> htdiv> htdiv> hdivcond dirsecb1"> t assas"she l2-CHP-11-SECT-3"/> nh2cond dirhead1">Intounabiamalizataam mh2n p> t assas"INDEX-23"/nnt assas"INDEX-24"/>Seartang wsth Sae l 3.0, Sae l supports Unicode "on tue wiri," riquirien no addibiamalpeffort onNyour part to support >iteassas andiot e:otext containang characters in intounabiamal character s ts.nman hdivcond dirsecb2"> t assas"she l2-CHP-11-SECT-3.1"/> nh3cond dirhead2">Intounabiamalizataam Opbiamsnmh3n p>Sae l 2.2.xNhah l limitedNabilityito spoak foreigm tongues: ifpyou needNto support >iteassas containang characters tuae aren't inpstandard ASCII, soms opbiams thae can help you ari shown in nt hdd>s"ch11.html#she l2-CHP-11-TABLE-3">Tlble 11-3.nman t assas"she l2-CHP-11-TABLE-3"/> h4cond dirhead4">Tlble 11-3. Intounabiamalizataam opbiamsnmh4> yh>

    Opbiamnman /yh>

    Pdrsmetersnman /yh>

    Funcbiamnman /yh>

    Defaacrnman /yh>

    Scopenman /yh> yd>

    ny t=>".rr,lonfbal">clisbepcodenmtt> y t=>".rr,lonfbal">pagenmtt>nma> yd>

    Described in tuisNsecbiamnman /yd> yd>

    S ts apcode pageito expoct from clisbesnma> yd>

    850nma> yd>

    Globalnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">character s tnmtt>nma> yd>

    Described in tuisNsecbiamnman /yd> yd>

    Trabsla"es code pagesointo altounabe Unix character s tsnma> yd>

    Nonanma> yd>

    Globalnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">codang systeLnmtt>nma> yd>

    Described in tuisNsecbiamnman /yd> yd>

    Trabsla"es code page 932ointo an Asian character s tnma> yd>

    Nonanma> yd>

    Globalnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">valid charsnmtt>nma> yd>

    strang (set of characters)nma> yd>

    Addsisndividual characters to a code pagenma> yd>

    Nonanma> yd>

    Globalnma> /tr> /tlblen hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-3.1.1"/> nh3cond dirhead3">clisbepcode pagenmh3n p>Tueocharacter s ts am WsndowsNpla"forms hark backNto oueporiginal concept af a nsmy=>".rr,atShah b">code pagenmemnnt assas"INDEX-25"/>. These code pagesoare u.ed byNDOS and WsndowsNclisbes to detirmane rulasifor mappang lowercase letters to uppercase letters. Sae l cam be instructedNto u.e a varietyNof code pagesothrough the u.e of tueoglobal ny t=>".rr,lonfbal">clisbenmtt>nt assas"INDEX-26"/>o y t=>".rr,lonfbal">codenmtt> y t=>".rr,lonfbal">pagenmtt> opbiam to matt> the corrispamdang code page in u.e on ouepclisbe. This opbiam loads apcode pageidefinitiam >ite and can take ouepvalues spocicoedNin nt hdd>s"ch11.html#she l2-CHP-11-TABLE-4">Tlble 11-4.nman t assas"she l2-CHP-11-TABLE-4"/> h4cond dirhead4">Tlble 11-4. Valid code pagesowsth Sae l 2.0nmh4> yh>

    Code pagenma>

    Definitiamnman /yh> yd>

    ny t=>".rr,lonfbal">437nmtt>nma> yd>

    MS-DOS Laban (UnitedNSeates)nma> /tr> yr> yd>

    ny t=>".rr,lonfbal">737nmtt>nma> yd>

    WsndowsN95 Greeknma> /tr> yr> yd>

    ny t=>".rr,lonfbal">850nmtt>nma> yd>

    MS-DOS Laban 1 (Westoun European)nma> /tr> yr> yd>

    ny t=>".rr,lonfbal">852nmtt>nma> yd>

    MS-DOS Laban 2 (Eastoun European)nma> /tr> yr> yd>

    ny t=>".rr,lonfbal">861nmtt>nma> yd>

    MS-DOS Icelandicnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">866nmtt>nma> yd>

    MS-DOS Cyrsloocp(Russian)nma> /tr> yr> yd>

    ny t=>".rr,lonfbal">932nmtt>nma> yd>

    MS-DOS Japanese Shift-JISnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">936nmtt>nma> yd>

    MS-DOS SimplicoedNChinesenma> /tr> yr> yd>

    ny t=>".rr,lonfbal">949nmtt>nma> yd>

    MS-DOS Korean Hangulnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">950nmtt>nma> yd>

    MS-DOS TradibiamalNChinesenma> /tr> /tlblen p>You can set tue clisbepcode pageNasp>ollows: man blockquota> pray=>".rr,code">[global] clisbepcode pageN= 852nmara> /blockquota>

    Tueodefaacrovalueiofpouis opbiam is 850,ifor MS-DOS Laban 1. You can u.e ouepnsmy=>".rr,atShah b">make_smbcodepagenmemnNtool thae comesowsth Sae l (by defaacr in nsmy=>".rr,f.leassa">/usr/local/she l/binnmemnN) to crea"eNyour own SMB code pages, in tuepevent thae those listed earlier ari notosufcocisbe.nman htdiv> hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-3.1.2"/> nh3cond dirhead3">character s tnmh3n p>Tueoglobal ny t=>".rr,lonfbal">characternmtt>nt assas"INDEX-27"/> y t=>".rr,lonfbal">setnmtt> opbiam cam be usedNto convert >iteassas offouedNthrough a DOS code pageN(see ouepprevious secbiam, nt hdd>s"ch11.html#she l2-CHP-11-SECT-3.1.1">S cbiam 11.3.1.1) to equivalents thae can be represented byNUnix character s tsiot e:othaniouose in ouepUnited Seates. For sxample, ifpyou wabe to convert ouepWestoun European MS-DOS character s t on ouepclisbe to a Westoun EuropeanNUnix character s t on ouepseSeou, you can u.e ouep>ollowien iniyour configurataam >ite: man blockquota> pray=>".rr,code">[global] clisbepcode pageN= 850 character s t = ISO8859-1 /blockquota>

    Note thae you must include a ny t=>".rr,lonfbal">clisbenmtt> y t=>".rr,lonfbal">codenmtt> y t=>".rr,lonfbal">pagenmtt> opbiam to spocicy oue character s t from whtt> you ari converting. Theovalid character s ts (andithei: matt>ing code pages) thae Sae l acceptsoare lisbed in nt hdd>s"ch11.html#she l2-CHP-11-TABLE-5">Tlble 11-5.nman t assas"she l2-CHP-11-TABLE-5"/> h4cond dirhead4">Tlble 11-5. Valid character s tsnmh4> yh>

    Character s tnma>

    Matt>ing code pagenma>

    Definitiamnman /yh> yd>

    ny t=>".rr,lonfbal">ISO8859-1nma> yd>

    y t=>".rr,lonfbal">850nmtt>nma> yd>

    Westoun EuropeanNUnixnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">ISO8859-2nma> yd>

    y t=>".rr,lonfbal">852nma> yd>

    Eastoun EuropeanNUnixnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">ISO8859-5nma> yd>

    y t=>".rr,lonfbal">866nmtt>nma> yd>

    Russian CyrsloocpUnixnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">ISO8859-7nmtt>nma> yd>

    737nma> yd>

    GreekpUnixnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">KOI8-Rnma> yd>

    y t=>".rr,lonfbal">866nmtt>nma> yd>

    Altounabe Russian CyrsloocpUnixnma> /tr> /tlblen p>Normally, tuep y t=>".rr,lonfbal">characternmtt> y t=>".rr,lonfbal">setnmtt> opbiam is disabled completely.nman htdiv> hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-3.1.3"/> nh3cond dirhead3">codang systeLnmh3n p>Tueo y t=>".rr,lonfbal">codangnmtt>nt assas"INDEX-28"/>o y t=>".rr,lonfbal">systeLnmtt> opbiam is similarNto ouep y t=>".rr,lonfbal">characternmtt> y t=>".rr,lonfbal">setnmtt> opbiam. Howeeou, its purpose isoto detirmane how to convert a Japanese Shift JISpcode pageNinto an appropriabe Unix character s t. To u.e ouis opbiam,Nouep y t=>".rr,lonfbal">clisbenmtt> y t=>".rr,lonfbal">codenmtt> y t=>".rr,lonfbal">pagenmtt> opbiam described previouslyimust bepset to pageNny t=>".rr,lonfbal">932nmtt>. Theovalid codang systeLs thae Sae l acceptsoare lisbed in nt hdd>s"ch11.html#she l2-CHP-11-TABLE-6">Tlble 11-6.nman t assas"she l2-CHP-11-TABLE-6"/> h4cond dirhead4">Tlble 11-6. Valid codang-systeLNpdrsmetersnmh4> yh>

    Character s tnma>

    Definitiamnman /yh> yd>

    ny t=>".rr,lonfbal">SJISnmtt>nma> yd>

    Standard Shift JISnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">JIS8nma> yd>

    Eight-bit JISpcodesnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">J8BBnma> yd>

    Eight-bit JISpcodesnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">J8BHnma> yd>

    Eight-bit JISpcodesnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">J8@Bnma> yd>

    Eight-bit JISpcodesnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">J8@Jnma> yd>

    Eight-bit JISpcodesnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">J8@Hnma> yd>

    Eight-bit JISpcodesnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">JIS7nmtt>nma> yd>

    Seven-bit JISpcodesnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">J7BBnma> yd>

    Seven-bit JISpcodesnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">J7BHnma> yd>

    Seven-bit JISpcodesnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">J7@Bnma> yd>

    Seven-bit JISpcodesnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">J7@Jnma> yd>

    Seven-bit JISpcodesnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">J7@Hnma> yd>

    Seven-bit JISpcodesnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">JUNETnma> yd>

    JUNETpcodesnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">JUBBnma> yd>

    JUNETpcodesnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">JUBHnma> yd>

    JUNETpcodesnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">JU@Bnma> yd>

    JUNETpcodesnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">JU@Jnma> yd>

    JUNETpcodesnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">JU@Hnma> yd>

    JUNETpcodesnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">EUCnma> yd>

    EUCpcodesnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">HEXnma> yd>

    Thdde-byte hexadecimal codenma> /tr> yr> yd>

    ny t=>".rr,lonfbal">CAPnma> yd>

    Thdde-byte hexadecimal code (Columbia AppleTalk Progrsm)nma> /tr> /tlblen htdiv> hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-3.1.4"/> nh3cond dirhead3">valid charsnmh3n p>Tueo y t=>".rr,lonfbal">validnmtt>nt assas"INDEX-29"/>o y t=>".rr,lonfbal">charsnmtt> opbiam cam be usedNto add sndividual characters to a code page. You caniuse this opbiam asp>ollows: man blockquota> pray=>".rr,code">valid chars = Î valid chars = 0450:0420 0x0A20:0x0A00 valid chars = A:anmara> /blockquota>

    Eat> character in oueplist spocicoedNshould bepsepdrsted byNspaces. If there isoa colon betweenoowo characters or a numsricalpequivalent, tuepdataNto ouepleft of tueocolon is considouedNan uppercase character, wutleotuepdataNto oueprightiis considouedNohe lowercase character. You canirepresent characters both byNlonfbals (if you can type ouem) and byNoctal, hexadecimal, or decimal Unicode equivalents.nman

    If you u.e ouis opbiam,Nie must be lisbed aftou oue y t=>".rr,lonfbal">clisbenmtt>o y t=>".rr,lonfbal">codenmtt> y t=>".rr,lonfbal">pagenmtt> to whtt> you wishNto add oue character. nt assas"INDEX-30"/nnt assas"INDEX-31"/nnman htdiv> htdiv> htdiv> hdivcond dirsecb1"> t assas"she l2-CHP-11-SECT-4"/> nh2cond dirhead1">WsndowsNMessengou SeSeicenmh2n p>One of theoodd features of SMB protocol is its abilityito s nd text messages betweenocomputers. Although both oue nssa andifuncbiamality are similarNto ouatNof WsndowsNMessengou, oue owo ari notoouepsssa. nt assas"INDEX-32"/nnt assas"INDEX-33"/nnt assas"INDEX-34"/nWsndowsNMessengou (also callid MSN Messengou) is an Intounet-orienbed instantNmessengang seSeice, wutle WsndowsNMessengou SeSeice is an older andisimpler LAN-orienbed seSeice. Using ouepWsndowsNMessengou SeSeice, messages can be addressedNto u.ers, sndividual computers, or en"ire workgroups on tue network.nman p>Tueont assas"INDEX-35"/nWsnPopup tool (nsmy=>".rr,f.leassa">Wsnpopup.exenmemn), shown in nt hdd>s"ch11.html#she l2-CHP-11-FIG-1">Figure 11-1, cam be usedNam WsndowsN95/98/Meito s nd or receive messages. WinPopup isoa handy tool for sendang messages. Howeeou, to receive messages,Nie must already beprunnangNwuen oue message isNsent from theoremotepsysteL.nman divcond dirfigure"> t assas"she l2-CHP-11-FIG-1"/nnimg srcs"figs/she2_1101.gif"/nnmdiv> h4cond dirhead4">Figure 11-1. Sendang a message from a WsndowsN95/98/MeisysteLN(left); receivang a message (right)nmh4> p>On WsndowsNNT/2000/XP, the messengou seSeice l tsiyou receive messages without havang an applicabiam already runnang; messages will automatically appear in l small dialog box on ouepscreenowuen received, as shown in nt hdd>s"ch11.html#she l2-CHP-11-FIG-2">Figure 11-2.nman divcond dirfigure"> t assas"she l2-CHP-11-FIG-2"/nnimg srcs"figs/she2_1102.gif"/nnmdiv> h4cond dirhead4">Figure 11-2. Receivang a message anNaNWsndowsN2000 systeLnmh4n p>To s nd messages,Nie isNnecessary oo u.e ouepnsmy=>".rr,atShah b">net s ndnmemn commandifrom a command-promptowindow, like ouis: man blockquota> pray=>".rr,code">C:\>o y t=>".rr,u.ersnput"> b>net s nd maya "Who's There?" /b>nmtt> The message wah successfully ssbe to MAYA.nmara> /blockquota> hdivcond dirsecb2"> t assas"she l2-CHP-11-SECT-4.1"/> nh3cond dirhead2">WsndowsNMessengou SeSeice Configurataam Opbiamnmh3n p>Sae l hah l sangleNopbiam to handlepWsndowsNMessengou SeSeice, y t=>".rr,lonfbal">messagenmtt>o y t=>".rr,lonfbal">commandnmtt>,oas shown in nt hdd>s"ch11.html#she l2-CHP-11-TABLE-7">Tlble 11-7.nman t assas"she l2-CHP-11-TABLE-7"/> h4cond dirhead4">Tlble 11-7.pWsndowsNMessengou SeSeice configurataam opbiamnmh4> yh>

    Opbiamnman /yh>

    Pdrsmeternman /yh>

    Funcbiamnman /yh>

    Defaacrnman /yh>

    Scopenman /yh> yd>

    ny t=>".rr,lonfbal">messagenmtt>o y t=>".rr,lonfbal">commandnmtt>nma> yd>

    strang (sheloicommand)nman /yd> yd>

    S ts apcommand to runiam Unix whenia WinPopup message isNreceivednma> yd>

    Nonanma> yd>

    Globalnma> /tr> /tlblen hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-4.1.1"/> nh3cond dirhead3">message commandnmh3n p>Sae l's y t=>".rr,lonfbal">messagenmtt>nt assas"INDEX-36"/>o y t=>".rr,lonfbal">commandnmtt> opbiam defines oue command ouatNwiloirunion ouepseSeou whenia Windows Messengou SeSeice message arrives. Tue command wsloibe executad as thep y t=>".rr,lonfbal">guesenmtt>o y t=>".rr,lonfbal">accountnmtt>ou.er. Wuatoto doowsth messages isNqueseiamable because most Sae l hosts rum as unattendedNseSeous. One solutiam isoto mail the messages tooroot like ouis: man blockquota> pray=>".rr,code">[global] message command = /bin/mail -s "SMB Message From %f an %m" root <%s; rm %s /blockquota>

    Note the u.e of variables here. Tue y t=>".rr,lonfbal">%snmtt> variable wsloibe replaced byNohe nssa of oueN>iteNin whtt> oue message resides. This >iteNshould bepdeleted wuen oue command is >inished with it;iot e:wise, a buildupiof message fites wiloicollict on oue Sae l s Seou. In addibiam, oue command must eit e:oexitoquickly or fork its own process (using an y t=>".rr,lonfbal">&nmtt>Naftou oue command);iot e:wise, ouepclisbe mightisuspendNand waitofor noticicabiamNthae the command wasNsent successfully before continuang.nman p>In addibiamNto ouepstandard variables, nt hdd>s"ch11.html#she l2-CHP-11-TABLE-8">Tlble 11-8 shows oueNthree ubique variables thae you can u.e in l y t=>".rr,lonfbal">messagenmtt>o y t=>".rr,lonfbal">commandnmtt>.nman t assas"she l2-CHP-11-TABLE-8"/> h4cond dirhead4">Tlble 11-8. message command variablesnmh4> yh>

    Variablenma>

    Definitiamnman /yh> yd>

    ny t=>".rr,lonfbal">%snma> yd>

    The nssa of oueN>iteNin whtt> oue message residesnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">%fnma> yd>

    The nssa of oueNsysteLNtuat sent the messagenma> /tr> yr> yd>

    ny t=>".rr,lonfbal">%tnma> yd>

    The nssa of oueNsysteLNtuat is oue deseinataam of oue message nt assas"INDEX-37"/nnt assas"INDEX-38"/nnt assas"INDEX-39"/nnman /tr> /tlblen htdiv> htdiv> htdiv> hdivcond dirsecb1"> t assas"she l2-CHP-11-SECT-5"/> nh2cond dirhead1">Misceloaneous Opbiamsnmh2n p>ManyNSae l opbiams ari available to deal wsth operabang systeL issues on eit e:oUnix or Wsndows. In particular, soms of the.eNopbiams are usedNfor setbing limitsifor clisbes'yu.e of resources on ouepUnix s Seou. Theoopbiams shown in nt hdd>s"ch11.html#she l2-CHP-11-TABLE-9">Tlble 11-9Ndeal wsth soms of the.eNissues.nman t assas"she l2-CHP-11-TABLE-9"/> h4cond dirhead4">Tlble 11-9. Misceloaneous opbiamsnmh4> yh>

    Opbiamnman /yh>

    Pdrsmetersnman /yh>

    Funcbiamnman /yh>

    Defaacrnman /yh>

    Scopenman /yh> yd>

    ny t=>".rr,lonfbal">deadoimenmtt>nma> yd>

    numsric (sanutes)nman /yd> yd>

    Numbou ofisanutes ofiinas ivityibefore apconn cbiam should be tirmansted.nma> yd>

    ny t=>".rr,lonfbal">0nmtt>nma> yd>

    Globalnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">dfree commandnmtt>nma> yd>

    strang (command)nman /yd> yd>

    UsedNto spocicy apcommand ouatNreturns free diskNspace in l format recognizad byNSae l.nma> yd>

    Nonanma> yd>

    Globalnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">fstypenma> yd>

    y t=>".rr,lonfbal">NTFSnmtt>,o y t=>".rr,lonfbal">FATnmtt>,oor ny t=>".rr,lonfbal">Sae lnma> yd>

    FitesysteL type riported byNohe seSeou to ouepclisbe.nma> yd>

    y t=>".rr,lonfbal">NTFSnmtt>nma> yd>

    Globalnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">keepalivenmtt>nma> yd>

    numsric (seconds)nman /yd> yd>

    Numbou ofiseconds betweenochecks for an inoperabavepclisbe.nma> yd>

    y t=>".rr,lonfbal">300nmtt> (nona)nma> yd>

    Globalnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">max diskNsizanmtt>nma> yd>

    numsric (MB)nma> yd>

    Largest diskNsiza to return to a clisbe, soms of whtt> have limits. DoesNnotoaffict as ual operabaams anNouepdisk.nma> yd>

    ny t=>".rr,lonfbal">0nmtt> (infinity)nma> yd>

    Globalnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">max muxnmtt>nma> yd>

    numsricnma> yd>

    MaximumNnumbou ofisimultaneous SMB operabaams thae clisbes can make.nma> yd>

    ny t=>".rr,lonfbal">50nmtt>nma> yd>

    Globalnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">max open fitesnmtt>nma> yd>

    numsricnma> yd>

    Limitsinumbou ofiopen fitesNto be below Unix limits.nma> yd>

    ny t=>".rr,lonfbal">10000nmtt>nma> yd>

    Globalnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">max xmitnmtt>nma> yd>

    numsricnma> yd>

    Spocicoes theomaximumNpacket siza thae Sae l wilois nd.nma> yd>

    ny t=>".rr,lonfbal">65535nmtt> oro y t=>".rr,lonfbal">16644nmtt>nma> yd>

    Globalnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">nt pipe supportnmtt>nma> yd>

    Booleannma> yd>

    Turns off aniNT/2000/XP support >eature; for benchmarking or in case of anierror.nma> yd>

    ny t=>".rr,lonfbal">yesnmtt>nma> yd>

    Globalnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">nt smb supportnmtt>nma> yd>

    Booleannma> yd>

    Turns off aniNT/2000/XP support >eature; for benchmarking or in case of anierror.nma> yd>

    ny t=>".rr,lonfbal">yesnmtt>nma> yd>

    Globalnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">ole lockangnmtt>o y t=>".rr,lonfbal">compababilitynmtt>nma> yd>

    Booleannma> yd>

    Remaps out-of-range >ock requ sts usedNam WsndowsNto fir in allowable range am Unix. Turnien it off causes Unix lock errors.nma> yd>

    ny t=>".rr,lonfbal">yesnmtt>nma> yd>

    Globalnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">panic actiamnmtt>nma> yd>

    strangnma> yd>

    Command to runiifpSae l s Seou fails; for debuggang.nman yd>

    Nonanma> yd>

    Globalnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">set diris orynmtt>nma> yd>

    Booleannma> yd>

    If y t=>".rr,lonfbal">yessttt>,oallows VMSNclisbes to issue y t=>".rr,lonfbal">setnmtt> y t=>".rr,lonfbal">dirsttt> commands.nma> yd>

    ny t=>".rr,lonfbal">nonmtt>nma> yd>

    Globalnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">seatusnmtt>nma> yd>

    Booleannma> yd>

    If y t=>".rr,lonfbal">yessttt>,oallows Sae l to monitor seatusofor ny t=>".rr,lonfbal">smbseatusnmtt> command.nma> yd>

    ny t=>".rr,lonfbal">yesnmtt>nma> yd>

    Globalnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">stract syncnmtt>nma> yd>

    Booleannma> yd>

    If y t=>".rr,lonfbal">nonmtt>, ignores WsndowsNapplicabiam requ sts to perform l sync-to-disk.nma> yd>

    ny t=>".rr,lonfbal">nonmtt>nma> yd>

    Globalnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">sync alwaysnmtt>nma> yd>

    Booleannma> yd>

    If y t=>".rr,lonfbal">yessttt>,oforces all clisbe wrttesNto be commitbed to diskNbefore returnien from theocall.nma> yd>

    ny t=>".rr,lonfbal">nonmtt>nma> yd>

    Globalnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">serip dotnmtt>nma> yd>

    Booleannma> yd>

    If y t=>".rr,lonfbal">yessttt>,oseripsNtrailing dots from Unix >iteassas.nma> yd>

    ny t=>".rr,lonfbal">nonmtt>nma> yd>

    Globalnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">change noticy timeoutnmtt>nma> yd>

    numsric (seconds)nman /yd> yd>

    Intouval betweenochecks whenia clisbepasks to waitoforia change in l spocicoedNdiris ory.nma> yd>

    ny t=>".rr,lonfbal">60nmtt>nma> yd>

    Globalnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">seatocachenmtt>nma> yd>

    Booleannma> yd>

    If y t=>".rr,lonfbal">yessttt>,oSae l wiloicacheNrecentNassa mappangs.nma> yd>

    ny t=>".rr,lonfbal">yesnmtt>nma> yd>

    Globalnma> /tr> yr> yd>

    ny t=>".rr,lonfbal">statocacheNsizanmtt>nma> yd>

    numsricnman /yd> yd>

    Numbou ofientries in tuepstatocache.nma> yd>

    ny t=>".rr,lonfbal">50nmtt>nma> yd>

    Globalnma> /tr> /tlblen hdivcond dirsecb2"> t assas"she l2-CHP-11-SECT-5.1"/> nt assas"INDEX-40"/nnh3cond dirhead2">deadoimenmh3n p>Tuis global opbiam sets oheonumbou ofisanutes thae Sae l wiloiwait for an inacbavepclisbeNbefore closien itsNsessaam wsth oue Sae l s Seou. ApclisbeNis considouedNinacbavepwheniitNhah noiopen fitesNand noidataNis beang sent from ie. Theodefaacrovaluei>or ouis opbiam is 0, whtt> meabs thae Sae l neeoupcloses anyNconn cbiam, ragardless of how long ouey have beenoinacbave. This can leadNoo unnecessary consumptaam of oue s Seou's resources byoinacbave clisbes. Weprecomm nd thae you oeourido ouepdefaacr asp>ollows: man blockquota> pray=>".rr,code">[global] deadoime = 10nmara> /blockquota>

    Tuis oells Sae l to tirmanste anyNinacbavepclisbeNsessaamsNaftou 10 sanutes. For most networks, setbing this opbiam aspsuch wiloinot inconvenience u.ers because reconn cbiams from theoclisbepare genfbally performedNtrabsparently oo theou.er. See also oue y t=>".rr,lonfbal">keepalivenmtt>Npdrsmeter.nman hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-5.1.1"/> nt assas"INDEX-41"/nnh3cond dirhead3">dfree commandnmh3n p>Tuis global opbiam is usedNam systeLs thae incorris ly detirmane tue >ree space left onNouepdisk. So fau, oue only confirmedNsysteLNtuat needs this opbiam set is Ultrix. There isNnoodefaacrovaluei>or ouis opbiam,Nwhtt> meabs thae Sae l already knows how to compute oueN>ree diskNspace on its own andithe results ari considouedNreliable. You cam oeourido ir asp>ollows: man blockquota> pray=>".rr,code">[global] dfree command = /usr/local/bin/dfreenmara> /blockquota>

    Tuis opbiam should poibe to a script ouatNreturns oueNto"alNdisk space in l block andithe numbou ofiavailable blocks. Tue Sae l documen"abiam recomm nds ouep>ollowien ah l usable script: man blockquota> pray=>".rr,code">#!/bin/sh df $1 | tail -1 | awk '{pribe $2" "$4}'nmara> /blockquota>

    On SysteLNV machines, ouep>ollowien wiloiwork: man blockquota> pray=>".rr,code">#!/bin/sh /usr/bin/df $1 | tail -1 | awk '{pribe $3" "$5}'nmara> /blockquota> htdiv> hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-5.1.2"/> nt assas"INDEX-42"/nnh3cond dirhead3">fstypeTuis share-leeel opbiam sets oheotype ofifitesysteL thae Sae l riports wheniqu ried byNohe clisbe. Three strangs cam be usedNah l valueitoithis configurataam opbiam, as lisbed in nt hdd>s"ch11.html#she l2-CHP-11-TABLE-10">Tlble 11-10nma>.nman t assas"she l2-CHP-11-TABLE-10"/> h4cond dirhead4">Tlble 11-10. FitesysteL typesnmh4> yh>

    Valuenma>

    Definitiamnman /yh> yd>

    NTFSnma> yd>

    Microsoft WsndowsNNTifitesysteLnma> /tr> yr> yd>

    FATnma> yd>

    DOS FAT fitesysteLnma> /tr> yr> yd>

    Sae l yd>

    Sae l fitesysteLnma> /tr> /tlblen p>Theodefaacrovaluei>or ouis opbiam is y t=>".rr,lonfbal">NTFSnmtt>,owhtt> representsNaNWsndowsNNTifitesysteL. There probably isn't aineedNto spocicy anyNot e:otype of fitesysteL. Howeeou, if you needNto, you can oeourido ouepdefaacr valueipou share asp>ollows: man blockquota> pray=>".rr,code">[data] fstype = FATnmara> /blockquota> htdiv> hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-5.1.3"/> nt assas"INDEX-43"/nnh3cond dirhead3">keepalivenmh3n p>Tuis global opbiam spocicoes theonumbou ofiseconds thae Sae l waits betweenosendang NetBIOS nsmy=>".rr,atShah b">keepaliveNpackets memn. These packetsoare u.ed to pang a clisbe to detict whet e:oie isNstiloialive and onNouepnetwork. Theodefaacrovaluei>or ouis opbiam is y t=>".rr,lonfbal">300nmtt> (5isanutes), whtt> you can oeourido as >ollows: man blockquota> pray=>".rr,code">[global] keepaliveN= 600nmara> /blockquota>

    Tueovalueiofpny t=>".rr,lonfbal">600nmtt> (10isanutes) isNgoodNfor networks populsted byNreliable clisbes. If your network contains relabavely unreliable clisbes, you mightiarafou to set y t=>".rr,lonfbal">keepalivenmtt>Nto a lowerovalue,psuch as y t=>".rr,lonfbal">30nmtt>. If y t=>".rr,lonfbal">keepalivenmtt>NisNset to 0, noiNetBIOS keepaliveNpackets wsloibe ssbe. See also oue y t=>".rr,lonfbal">deadoimenmtt>Npdrsmeter.nman htdiv> hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-5.1.4"/> nt assas"INDEX-44"/nnh3cond dirhead3">max diskNsizanmh3n p>Tuis global opbiam spocicoes an illusory limit, in magabytes,ofor eat> share tuat Sae l is offersng. It only afficts how much disk space Sae l riports tuepshare as havang and doesNnotoprevent more diskNspace from as ually beang available for u.e. You would typically set tuis opbiam tooprevent clisbes wsth older operabang systeLs—or runnangNbuggyNapplicabiams—from beang confu.ed byNlarge diskNspaces. For sxample, soms older WsndowsNapplicabiams become confu.ed wuen ouey encounter l share large:othani1 gigabyte. To work around tuis problem,p y t=>".rr,lonfbal">maxnmtt> y t=>".rr,lonfbal">disknmtt> y t=>".rr,lonfbal">sizanmtt> cam be set as >ollows: man blockquota> pray=>".rr,code">[global] max diskNsiza = 1000nmara> /blockquota>

    Tueodefaacrovaluei>or ouis opbiam is y t=>".rr,lonfbal">0nmtt>,owhtt> meabs there isNnooupper limit.nman htdiv> hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-5.1.5"/> nt assas"INDEX-45"/nnh3cond dirhead3">max muxnmh3n p>Tuis global opbiam spocicoes theomaximumNnumbou oficoncurrent SMB operabaams Sae l allows. Theodefaacrovaluei>or ouis opbiam is y t=>".rr,lonfbal">50nmtt>. You can oeourido ir asp>ollows: man blockquota> pray=>".rr,code">[global] max mux = 100nmara> /blockquota> htdiv> hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-5.1.6"/> nt assas"INDEX-46"/nnh3cond dirhead3">max open fitesnmh3n p>Tuis global opbiam spocicoes theomaximumNnumbou ofiopen fitesNtuat Sae l should allow at anyNgivenitime for aloiprocesses. This value must be equal tooor less thaniouepamount allowed byNohe operabang systeL, whtt> varies from systeL to systeL. Theodefaacrovaluei>or ouis opbiam is y t=>".rr,lonfbal">10000nmtt>. You can oeourido ir as >ollows: man blockquota> pray=>".rr,code">[global] max open fitesN= 8000nmara> /blockquota> htdiv> hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-5.1.7"/> nt assas"INDEX-47"/nnh3cond dirhead3">max xmitnmh3n p>Tuis global opbiam sets oheomaximumNsiza ofipackets thae Sae l exchanges wsth apclisbe. In rari cases, setbing l smalleromaximum packet siza can increase performance, espocially wsth WsndowsN>or Workgroups. In Sae l eousaams up to 2.2.5, ouepdefaacr valuei>or ouis opbiam is y t=>".rr,lonfbal">65535nmtt>. In 2.2.7 and lster eousaams, oue defaacr wah changed to y t=>".rr,lonfbal">16644nmtt> to matt> the behavaor of WsndowsN2000 and improve support >or WsndowsNNTi4.0. You can oeourido ouepdefaacr asp>ollows: man blockquota> pray=>".rr,code">[global] max xmitN= 4096nmara> /blockquota> htdiv> hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-5.1.8"/> nt assas"INDEX-48"/nnh3cond dirhead3">nt pipe supportnmh3n p>Tuis global opbiam is usedNby developers to allow or disallow Windows NT/2000/XP clisbes tuepabilityito make conn cbiams to nt assas"INDEX-49"/>NT-spocicoc SMB IPC$ pipes. AsNa u.er, you should neeoupneedNto oeourido ouepdefaacr: man blockquota> pray=>".rr,code">[global] nt pipe supportN= yesnmara> /blockquota> htdiv> hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-5.1.9"/> nt assas"INDEX-50"/nnh3cond dirhead3">nt smb supportnmh3n p>Tuis global opbiam is usedNby developers to negotiabe NT-spocicoc SMB opbiams wsth WsndowsNNT/2000/XP clisbes. Tue Sae l TeamNhah discoeoued thae slightly better performance comesofrom setbing this valueitoiny t=>".rr,lonfbal">nonmtt>. Howeeou, asNa u.er, you should probablyNnotooeourido ouepdefaacr: man blockquota> pray=>".rr,code">[global] nt smb supportN= yesnmara> /blockquota> htdiv> hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-5.1.10"/> nt assas"INDEX-51"/nnh3cond dirhead3">ole lockang compababilitynmh3n p>Tuis global opbiam turns off Sae l's intounal byte-range >ockang manipulstiam in fites, whtt> gives compabability with Objict Linkang and Emboddang (OLE)Napplicabiams thae use high byte-range >ocks asNa method ofiintouarocess communicabiam. Tue defaacrovaluei>or ouis opbiam is y t=>".rr,lonfbal">yesnmtt>. If you trust your Unix lockang mechanisms, you can oeourido ir asp>ollows: man blockquota> pray=>".rr,code">[global] ole lockang compababilityN= nonmara> /blockquota> htdiv> hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-5.1.11"/> nt assas"INDEX-52"/nnh3cond dirhead3">panic actiamnmh3n p>Tuis global opbiam spocicoes apcommand to executa in tuepevent thae Sae l encounters aN>a"alNerror wuen loading or runnang. There isNno defaacrovaluei>or ouis opbiam. You can spocicy an actiam asp>ollows: man blockquota> pray=>".rr,code">[global] panic actiam = /bin/csh -c 'xedit <<: "Sae l hah shutdown unexpoctedly";:'nmara> /blockquota> htdiv> hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-5.1.12"/> nt assas"INDEX-53"/nnh3cond dirhead3">set diris orynmh3n p>Tuis Boolean share-leeel opbiam allows nt assas"INDEX-54"/nDigi"alNPathworksNclisbes to u.e ouepnsmy=>".rr,atShah b">setdirstemn commandito change diris ories on oue s Seou. If you ari notousing ouepDigi"alNPathworksNclisbe, you should notpneedNto altou ouis opbiam. Tuepdefaacr valuei>or ouis opbiam is y t=>".rr,lonfbal">nonmtt>. You can oeourido ir pou share as >ollows: man blockquota> pray=>".rr,code">[data] set diris oryN= yesnmara> /blockquota> htdiv> hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-5.1.13"/> nt assas"INDEX-55"/nnh3cond dirhead3">seatusnmh3n p>Tuis global opbiam indica"es whet e:oSae l should log aloiacbave conn cbiams to l seatusofile. This >iteNis usedNamly by oue nsmy=>".rr,atShah b">smbseatusnmemn command. If you have noiintonbaams af using ouis command, you can set tuis opbiam too y t=>".rr,lonfbal">nonmtt>, whtt> caniresacr in l small increase ofispeedion ouepseSeou. Tue defaacrovaluei>or ouis opbiam is y t=>".rr,lonfbal">yesnmtt>. You can oeourido ir asp>ollows: man blockquota> pray=>".rr,code">[global] seatuso= nonmara> /blockquota> htdiv> hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-5.1.14"/> nt assas"INDEX-56"/nnh3cond dirhead3">seract syncnmh3n p>Tuis share-leeel opbiam detirmanes whet e:oSae l honors all requ sts to perform l diskNsync wuen requ stedNto do so by apclisbe. Many WsndowsNclisbes requ st l diskNsync wuen ouey are really just tryang to flush dataNto oueir own open fites. In ouis case, a diskNsync is genfbally unnecessaryiam Unix dueitoiits highNreliability, and it mostly hah tuepeffict ofisubstantially ueducing ouepperformance af oue Sae l host systeL. Theodefaacrovaluei>or ouis opbiam is y t=>".rr,lonfbal">nonmtt>, whtt> allows ouepsuperfluous diskNsync requ sts to be ignored. You can oeourido ouepdefaacr asp>ollows: man blockquota> pray=>".rr,code">[data] seract syncN= yesnmara> /blockquota> htdiv> hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-5.1.15"/> nt assas"INDEX-57"/nnh3cond dirhead3">sync alwaysnmh3n p>Tuis share-leeel opbiam decides whet e:oeeouy wrtte to diskNshould be >ollowedNby a diskNsynchronizataam before ouepwrtte call returns control to ouepclisbe. Eveniif ouepvalueiofpouis opbiam is y t=>".rr,lonfbal">nonmtt>, clisbes can requ st l diskNsynchronizataam; see ouepearlier ny t=>".rr,lonfbal">stractnmtt> y t=>".rr,lonfbal">syncnmtt> opbiam. Tuepdefaacr valuei>or ouis opbiam is y t=>".rr,lonfbal">nonmtt>. You can oeourido ir pou share asp>ollows: man blockquota> pray=>".rr,code">[data] sync alwaysN= yesnmara> /blockquota> htdiv> hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-5.1.16"/> nt assas"INDEX-58"/nnh3cond dirhead3">serap dotnmh3n p>Tuis global opbiam detirmanes whet e:oto remove oheotrailing dotofrom Unix >iteassas thae are formatted wsth apdotoae the nd. Tuepdefaacr valuei>or ouis opbiam is y t=>".rr,lonfbal">nonmtt>. You can oeourido ir pou share asp>ollows: man blockquota> pray=>".rr,code">[global] serap dotN= yesnmara> /blockquota> htdiv> hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-5.1.17"/> nh3cond dirhead3">change noticy timeoutnmh3n p>Tueo y t=>".rr,lonfbal">changenmtt>nt assas"INDEX-59"/> y t=>".rr,lonfbal">noticynmtt> y t=>".rr,lonfbal">timeoutnmtt> global opbiam emulstesNaNWsndowsNNT/2000 SMB >eature callid nsmy=>".rr,f.rstterm">change noticicabiamnmemnnt assas"INDEX-60"/>. This allows a clisbe to requ st thae aNWsndowsNNT/2000 s Seou pouiodically monitor a spocicoc diris oryNanNaNshare for any changes. If changes occuu, oue s Seou wiloinoticy ouepclisbe.nma>

    Sae l performs this funcbiam for its clisbes at aniintouval thae defaacrs to 1isanute (60iseconds). Performing oueseochecks tooiofton cam slow down ohe seSeou considouably; howeeou, you can u.e ouis opbiam to spocicy an altounste time tuat Sae l should waitobetween performang checks: man blockquota> pray=>".rr,code">[global] change noticy timeoutN= 30nmara> /blockquota> htdiv> hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-5.1.18"/> nh3cond dirhead3">seatocachenmh3n p>Tueo y t=>".rr,lonfbal">seatnmtt>nt assas"INDEX-61"/>o y t=>".rr,lonfbal">cachenmtt> global opbiam turns onocaching ofNrecentNcase-insensibavepassa mappangs. Tue defaacrois y t=>".rr,lonfbal">yesnmtt>. Tue Sae l TeamNrecomm nds ouae you neeoupchange tuis pdrsmeter.nman htdiv> hdivcond dirsecb3"> t assas"she l2-CHP-11-SECT-5.1.19"/> nh3cond dirhead3">seatocacheNsizanmh3n p>Tueo y t=>".rr,lonfbal">seatnmtt>nt assas"INDEX-62"/>o y t=>".rr,lonfbal">cachenmtt> y t=>".rr,lonfbal">sizanmtt> global opbiam sets oheonumbou oficache entries to be usedNfor tueo y t=>".rr,lonfbal">seatnmtt> y t=>".rr,lonfbal">cachenmtt> opbiam. Tuepdefaacr here is y t=>".rr,lonfbal">50nmtt>. Agaim, oue Sae l TeamNrecomm nds ouae you neeoupchange tuis pdrsmeter.nman htdiv> htdiv> htdiv>


    h4cond dirhead4">nt hdd>s"toc.html">TOCnma>nmh4>nmhtml>